.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.content {
  padding: 0 16px 20px;
}

/* 医院信息区域 */
.hospitalInfo {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  border-radius: 8px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hospitalIcon {
  width: 50px;
  height: 50px;
  margin-right: 12px;
}

.hospitalIcon img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.hospitalDetails {
  flex: 1;
}

.hospitalName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.hospitalAddress {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.switchButton {
  background: none;
  border: 1px solid #1890ff;
  color: #1890ff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.switchButton:hover {
  background-color: #1890ff;
  color: #fff;
}

/* 智能客服横幅 */
.smartServiceBanner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  color: #fff;
}

.bannerContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bannerText {
  font-size: 14px;
  flex: 1;
}

.consultButton {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.consultButton:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 搜索栏 */
.searchBar {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.searchIcon {
  color: #999;
  margin-right: 8px;
  font-size: 16px;
}

.searchInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
}

.searchInput::placeholder {
  color: #999;
}

/* 最近挂号医生 */
.recentSection {
  margin: 16px 0;
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.recentDoctors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recentDoctorCard {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.recentDoctorCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recentDoctorAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.recentDoctorInfo {
  flex: 1;
}

.recentDoctorName {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.recentDoctorTitle {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.recentDoctorDepartment {
  font-size: 12px;
  color: #999;
}

.recentDoctorFee {
  font-size: 14px;
  font-weight: 600;
  color: #1890ff;
}

/* 科室网格 - 左右两列布局 */
.departmentGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 16px 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.departmentColumn {
  display: flex;
  flex-direction: column;
}

.departmentItem {
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
  border-right: 1px solid #f0f0f0;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.departmentItem:hover {
  background-color: #f8f9fa;
}

.departmentItem:last-child {
  border-bottom: none;
}

.subDepartmentGroup {
  display: flex;
  flex-direction: column;
}

.subDepartmentItem {
  padding: 12px 16px;
  font-size: 14px;
  color: #666;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
  border-right: 1px solid #f0f0f0;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.subDepartmentItem:hover {
  background-color: #f0f8ff;
  color: #1890ff;
}

.subDepartmentItem:last-child {
  border-bottom: none;
}

/* 右列样式调整 */
.departmentColumn:last-child .departmentItem,
.departmentColumn:last-child .subDepartmentItem {
  border-right: none;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 16px;
}

.breadcrumbLink {
  color: #1890ff;
  cursor: pointer;
  font-size: 14px;
}

.breadcrumbSeparator {
  color: #999;
  margin: 0 8px;
}

.breadcrumbCurrent {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

/* 医生列表 */
.doctorList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.doctorCard {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.doctorCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.doctorAvatar {
  position: relative;
  width: 60px;
  height: 60px;
  margin-right: 16px;
  flex-shrink: 0;
}

.doctorAvatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.onlineIndicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #52c41a;
  border: 2px solid #fff;
  border-radius: 50%;
}

.doctorInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doctorHeader {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doctorName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.doctorTitle {
  font-size: 12px;
  color: #666;
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.doctorRating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #faad14;
  font-size: 12px;
}

.doctorDepartment {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.doctorExperience {
  font-size: 12px;
  color: #666;
}

.doctorSchedule {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.doctorFooter {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.doctorFee,
.doctorSlots {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feeLabel,
.slotsLabel {
  font-size: 10px;
  color: #999;
}

.feeAmount {
  font-size: 14px;
  font-weight: 600;
  color: #ff4d4f;
}

.slotsCount {
  font-size: 12px;
  color: #52c41a;
  font-weight: 500;
}

.doctorActions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 16px;
}

.bookButton {
  background-color: #1890ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.bookButton:hover {
  background-color: #40a9ff;
}

.bookButton.disabled {
  background-color: #d9d9d9;
  color: #999;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .content {
    padding: 0 12px 16px;
  }
  
  .hospitalInfo {
    padding: 12px;
  }
  
  .hospitalIcon {
    width: 40px;
    height: 40px;
  }
  
  .hospitalName {
    font-size: 14px;
  }
  
  .hospitalAddress {
    font-size: 11px;
  }
  
  .departmentGrid {
    grid-template-columns: 1fr;
  }
  
  .departmentItem {
    padding: 12px;
    font-size: 14px;
  }
  
  .subDepartmentItem {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .doctorCard {
    padding: 12px;
  }
  
  .doctorAvatar {
    width: 50px;
    height: 50px;
  }
  
  .doctorName {
    font-size: 14px;
  }
  
  .doctorTitle {
    font-size: 10px;
  }
  
  .bookButton {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 70px;
  }
}

/* 科室选择两列布局 */
.departmentContainer {
  display: flex;
  height: 400px;
  background: white;
  margin: 12px 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 左侧科室分类 */
.categoryList {
  width: 120px;
  background: #f8f9fa;
  border-right: 1px solid #e9ecef;
  overflow-y: auto;
}

.categoryItem {
  padding: 20px 16px;
  cursor: pointer;
  border-bottom: 1px solid #e9ecef;
  font-size: 15px;
  color: #666;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  line-height: 1.4;
}

.categoryItem:hover {
  background-color: #e9ecef;
  color: #333;
}

.categoryItem.activeCategory {
  background-color: #e6f7ff;
  color: #1890ff;
  font-weight: 500;
}

.categoryItem.activeCategory::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #1890ff;
}

/* 右侧门诊列表 */
.clinicList {
  flex: 1;
  overflow-y: auto;
  background: white;
}

.clinicItem {
  padding: 20px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #333;
  transition: background-color 0.2s ease;
  position: relative;
  line-height: 1.4;
}

.clinicItem:hover {
  background-color: #f8f9fa;
}

.clinicItem.selectedClinic {
  background-color: #f0f8ff;
  color: #1890ff;
  font-weight: 500;
}

.clinicItem.selectedClinic::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #1890ff;
}

.noClinicMessage {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* 选择科室按钮容器 */
.selectButtonContainer {
  padding: 16px;
  background: #fafbfc;
  border-top: 1px solid #f0f0f0;
}

.selectDepartmentBtn {
  width: 100%;
  height: 48px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.selectDepartmentBtn:hover {
  background-color: #40a9ff;
}

.selectDepartmentBtn:active {
  background-color: #096dd9;
}

/* 竖排Tab响应式设计 */
@media (max-width: 768px) {
  .tabContainer {
    flex-direction: column;
    height: auto;
  }
  
  .tabList {
    width: 100%;
    height: auto;
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .tabItem {
    min-width: 80px;
    padding: 12px 16px;
    border-bottom: none;
    border-right: 1px solid #e9ecef;
    white-space: nowrap;
  }
  
  .tabItem.activeTab::after {
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 3px;
  }
  
  .rightContent {
    height: 350px;
  }
  
  .departmentList {
    height: 280px;
  }
  
  .selectButtonContainer {
    padding: 12px;
  }
  
  .selectDepartmentBtn {
    height: 44px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .tabItem {
    min-width: 70px;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .departmentItem {
    padding: 16px;
  }
  
  .departmentName {
    font-size: 15px;
  }
  
  .selectButtonContainer {
    padding: 10px;
  }
  
  .selectDepartmentBtn {
    height: 40px;
    font-size: 14px;
  }
}